
#include "stdafx.h"
#include "StackPacan.h"

namespace StackPacan {
	const int max_size = 200;
	char v[max_size];
	int top = -1;
	void push(char c){
		if(top == max_size) throw Overflow();

		v[++top] = c;
	}
	char pop(){
		if(top == -1) throw Overflow();

		return v[top--];			
	}
}